//评论功能暂时用弹窗代替
function getValue()
    {
    alert('这个我不会');
    }

//搜索
function search()
{
    alert('开发中')
}

//1、获取元素
var sp1 = document.getElementById('sp1');
var sp2 = document.getElementById('sp2');
var sp3 = document.getElementById('sp3');
var sp4 = document.getElementById('sp4');
var sp5 = document.getElementById('sp5');
var sp6 = document.getElementById('sp6');
var sp7 = document.getElementById('sp7');
var sp8 = document.getElementById('sp8');
var sp9 = document.getElementById('sp9');
var sp10 = document.getElementById('sp10');
var sp11 = document.getElementById('sp11');
var sp12 = document.getElementById('sp12');

var video = document.querySelector('video');

//2、注册事件 处理程序
//视频太大，每3个视频重复一次
sp1.onclick = function() {
    video.src = 'sucai/sp1.mp4';
    video.title = 'sp1';
}
sp2.onclick = function() {
    video.src = 'sucai/sp2.mp4';
    video.title = 'sp2';
}
sp3.onclick = function() {
    video.src = 'sucai/sp3.mp4';
    video.title = 'sp3';
}

sp4.onclick = function() {
    video.src = 'sucai/sp1.mp4';
    video.title = 'sp4';
}
sp5.onclick = function() {
    video.src = 'sucai/sp2.mp4';
    video.title = 'sp5';
}
sp6.onclick = function() {
    video.src = 'sucai/sp3.mp4';
    video.title = 'sp6';
}
//
sp7.onclick = function() {
    video.src = 'sucai/sp1.mp4';
    video.title = 'sp7';
}
sp8.onclick = function() {
    video.src = 'sucai/sp2.mp4';
    video.title = 'sp8';
}
sp9.onclick = function() {
    video.src = 'sucai/sp3.mp4';
    video.title = 'sp9';
}

sp10.onclick = function() {
    video.src = 'sucai/sp1.mp4';
    video.title = 'sp10';
}
sp11.onclick = function() {
    video.src = 'sucai/sp2.mp4';
    video.title = 'sp10';
}
sp12.onclick = function() {
    video.src = 'sucai/sp3.mp4';
    video.title = 'sp12';
}
